#include "album_send.h"

string network::album_send::get_string()
{
	create_open_object("album");
	create_close_object("album");
	create_attrib("name", _alb->get_name());

	string rw = get_header();
	list<model::title> &t = _alb->get_titles();
	for(list<model::title>::iterator i = t.begin(); i != t.end(); ++i) {
		boost::shared_ptr<model::title> tmp(&(*i), 
						core::null_deleter());
		network::title_send snd(get_impl()->clone(), tmp);
		rw += snd.get_string();
	}
	rw += get_footer();
	return rw;
}

